<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<textarea>
{
	"alerta" : "${alerta}",
	"tipo" : "${errors != null || invalid ? 'alerta' : 'ok'}",
	"error" : ${errors != null || invalid ? true : false },
	"erros" : [
	<c:forEach items="${errors}" var="erro" varStatus="status">
		{
			"categoria" : "${erro.category}",
			"mensagem" : "${erro.message}"
		}
		 <c:if test="${!status.last}">,</c:if>		
	</c:forEach>
	]
}
</textarea>